package com.huawei.appgallery.foundation.ui.css;

import java.util.ArrayList;
import java.util.List;

public class CSSRule {
    private List<CSSRule> childCssRule = new ArrayList();
    private String selectorText;
    private CSSDeclaration styleDeclaration = new CSSDeclaration();

    public CSSRule(String str) {
        this.selectorText = str;
    }

    public String getSelectorText() {
        return this.selectorText;
    }

    protected List<CSSRule> getChildCssRule() {
        return this.childCssRule;
    }

    public CSSRule addStyleDeclaration(String str, String str2) {
        this.styleDeclaration.add(str, str2);
        return this;
    }

    public CSSDeclaration getStyleDeclaration() {
        return this.styleDeclaration;
    }

    public CSSRule addChildRule(CSSRule cSSRule) {
        this.childCssRule.add(cSSRule);
        return this;
    }
}
